package com.tensquare.search.dao;

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @Author:zimmor
 * @Date: 2021/3/6 16:55
 * @Description 数据接口
 * @version: 1.0.0
 */

public interface SearchDao extends ElasticsearchRepository<Article, String > {
    Page<Article> findByTitleOrContentLike(String title, String content, Pageable pageable);
}
